<html>

<head>
    <link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
    <script defer src="https://pyscript.net/alpha/pyscript.js"></script>
</head>

<body> <py-script> print('Hello, World!') </py-script>

    <div class="container">
        <div>
            <py-repl std-out="output" std-err="errors"></py-repl>
        </div>
        <div>
            <b>结果</b>
            <hr>
            <div id="output"></div>
        </div>
        <div>
            <b>错误</b>
            <hr>
            <div id="errors"></div>
        </div>
    </div>
</body>

</html>